package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

// ChatIndexReq 显示首页参数
type ChatIndexReq struct {
	g.Meta `path:"/chat" method:"get"  tags:"ChatService" summary:"主页"`
}
type ChatIndexRes struct {
	g.Meta `mime:"text/html" type:"string" example:"<html/>"`
}

// ChatNameReq 提交用户信息参数
type ChatNameReq struct {
	g.Meta `path:"/chat/name" method:"post"  tags:"ChatService" summary:"姓名页面"`
	Name   string `v:"required|max-length:20#为什么不是一个很棒的名字"`
}
type ChatNameRes struct {
	g.Meta `mime:"text/html" type:"string" example:"<html/>"`
}

// ChatWebsocketReq websocket请求
type ChatWebsocketReq struct {
	g.Meta `path:"/chat/websocket" method:"get"  tags:"ChatService" summary:"发送消息"`
}
type ChatWebsocketRes struct {
	g.Meta `mime:"text/html" type:"string" example:"<html/>" dc:"如果成功,它将重定向到主页"`
}
